* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.container {
  width: 90vw;
  display: flex;
}

.container .card {
  height: 80vh;
  margin: 10px;
  position: relative;
  border-radius: 50px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  flex: 0.5;
  cursor: pointer;
  transition: all 700ms ease-in;
}

.container .card.active {
  flex: 5
}

.container .card h3 {
  font-size: 24px;
  position: absolute;
  bottom: 20px;
  left: 20px;
  margin: 0;
  opacity: 0;
  color: #fff
}

.container .card.active h3 {
  opacity: 1;
  transition: all 700ms ease-in;
}

/* 媒体查询 */
@media (max-width:580px) {
  .container {
    width: 100vw;
  }

  .card:nth-child(4),
  .card:nth-child(5) {
    display: none;
  }
}